app.controller('info',function($scope,$stateParams,$http,$ionicLoading){
	console.log($stateParams)
	$scope.infos=$stateParams
	$ionicLoading.show()
	$http.get('/api/v2/brands',{
		   params:{
			"offset":$stateParams.length,
			"limit":18,
			"category_id":$stateParams.id
		  }
	}).then(function(res){
		if(res){
			$ionicLoading.hide()
		}
		console.log(res.data)
		$scope.datas=res.data
	}).catch(function(err){
		$ionicLoading.show({
			duration:3000,
			template:'获取失败了'
		})
	})
})